package com.ruoyi.trainingManagement.service.impl;

import com.ruoyi.trainingManagement.domain.Vo.StudentScoreListVo;
import com.ruoyi.trainingManagement.domain.Vo.StudentScoreStatsVO;
import com.ruoyi.trainingManagement.mapper.StudentScoreMapper;
import com.ruoyi.trainingManagement.service.StudentScoreService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.common.core.domain.model.LoginUser;
import com.ruoyi.common.utils.SecurityUtils;
import com.ruoyi.common.exception.ServiceException;
import java.util.List;
@Service
public class StudentScoreServiceImpl implements StudentScoreService {

    @Autowired
    private StudentScoreMapper studentScoreMapper;

    @Override
    public List<StudentScoreListVo> getScoreList(String userName) {
        return studentScoreMapper.listStudentScoresForDisplay(userName);
    }

    @Override
    public StudentScoreStatsVO getScoreStats(String userName) {
        return studentScoreMapper.getScoreStats(userName);
    }
}